/*    */ package handling.login.handler;
/*    */ 
/*    */ import client.MapleClient;
/*    */ import constants.ServerConstants;
/*    */ import handling.login.LoginServer;
/*    */ import java.util.Arrays;
/*    */ import java.util.LinkedList;
/*    */ import java.util.List;
/*    */ import tools.Triple;
/*    */ import tools.packet.LoginPacket;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ServerlistRequestHandler
/*    */ {
/*    */   public static void handlePacket(MapleClient c, boolean packet) {
/* 21 */     List<Triple<String, Integer, Boolean>> backgrounds = new LinkedList<>();
/* 22 */     backgrounds.addAll(Arrays.asList(ServerConstants.backgrounds));
/* 23 */     c.announce(LoginPacket.getServerList(0, LoginServer.getLoad()));
/* 24 */     c.announce(LoginPacket.getEndOfServerList());
/* 25 */     c.announce(LoginPacket.enableRecommended(backgrounds));
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\handling\login\handler\ServerlistRequestHandler.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */